package com.zuo_book.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * JWT响应DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class JwtResponse {
    
    /**
     * token
     */
    private String token;
    
    /**
     * token类型
     */
    private String type = "Bearer";
    
    /**
     * 用户ID
     */
    private Long id;
    
    /**
     * 用户名
     */
    private String username;
    
    /**
     * 邮箱
     */
    private String email;
    
    /**
     * 角色
     */
    private String role;
    
    /**
     * 构造函数
     */
    public JwtResponse(String token, Long id, String username, String email, String role) {
        this.token = token;
        this.id = id;
        this.username = username;
        this.email = email;
        this.role = role;
    }
} 